package com.alibaba.citrus.cr.forecast.repository;

import java.util.List;

import com.epoch.app.crforecastsales.sdo.ForecastOrderLineSDO;
import com.epoch.app.crforecastsales.sdo.ForecastOrderSDO;

public interface ForecastOrderWriteRepository {
    String save(ForecastOrderSDO forecastOrderSDO);
    /**
     * 预报订单提交
     * @param forecastOrderSDO
     * @return
     */
    boolean submit(ForecastOrderSDO forecastOrderSDO);
    /**
     * 更改 王成
     */
    boolean modify(ForecastOrderSDO forecastOrderSDO);
    /**
     * 批量更改 王成
     */
    Integer batchModify(List<String> ids);

    /**
     * 根据详情修改主订单信息
     * @param forecastOrderSDO
     * @return
     */
    boolean modifyForecast(ForecastOrderSDO forecastOrderSDO);

    /**
     * 根据主订单ID修改备注信息
     * @param forecastOrderSDO
     * @return
     */
    boolean modifyForecastRemark(ForecastOrderSDO forecastOrderSDO);


    /**
     * 更新预报单状态
     * @param orderLineList
     * @return
     */
    boolean updateForecastStatus(List<ForecastOrderLineSDO> orderLineList, ForecastOrderSDO order);
}
